﻿using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Gengens.Disk.Entity;

/// <summary>
/// 实体基类接口
/// </summary>
/// <remarks>
/// 用于标准化实体的生命周期方法，这些方法将在Repository阶段进行执行
/// </remarks>
public interface IBaseModel<Model> where Model : class
{
    void OnModelCreate(EntityTypeBuilder<Model> builder);

    bool OnSelect();

    bool OnDelete();

    bool OnUpdate();

    bool OnInsert();
}

